package com.hp.util;


import lombok.Data;

import java.util.List;

@Data
public class PageBean<T> {
    private int totalPages;//总条数
    private int totalCount;//总条数
    private int page;//当前页数
    private int limit;//每页长度
    private List<T> list;//数据集合 就是用来获取页面的所有数据放入list集合中

    public PageBean(int totalPages, int totalCount, int page, int limit, List<T> list) {
        this.totalPages = totalPages;
        this.totalCount = totalCount;
        this.page = page;
        this.limit = limit;
        this.list = list;
    }
    public PageBean(){

    }
}
